// 返回上一个页面
function fanhui() {
  history.go(-1);
}
// 月度统计
function yuedu() {
  location.href = "../monthlyStatistics/monthlyStatistics.html";
}

function day() {
  var htmlStr = "";
  for (i = 1; i < 31; i++) {
    htmlStr += `<div id='day' class="day fdc aic jc-sb" onclick="bian(${i})"><span class="num">${i}</span><span class="dian"></span></div>`;
  }
  document.querySelector("#day-box").innerHTML = htmlStr;
}
day();
function bian(i) {
  var _day = document.querySelectorAll("#day");
  for (x = 0; x < 30; x++) {
    _day[x].classList.remove("blue");
  }
  _day[i - 1].classList.add("blue");
}
